package com.qianfeng.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 映射数据库医生表
 */
public class Doctor {

    private Integer dId;//医生Id
    private String dName;//医生名
    private String dIdCard;//身份证号
    private String dPhone;//手机号
    private String dTelephone;//座机
    private Integer dSex;//性别 1:男 0:女
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date dBirthday;//生日
    private Integer dAge;//年龄
    private String dEmail;//邮箱
    private Integer deptId;//科室ID关联科室表主键
    private String dEducation;//学历
    private String dRemark;//备注
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date dHiredate;//入职时间
    private Integer dState;//状态 1:正常 0:离职
    private Date updateTime;//设置当前时间，并且自动更更新时间
    private Department department;//关联部门

    public Integer getdId() {
        return dId;
    }

    public void setdId(Integer dId) {
        this.dId = dId;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public String getdIdCard() {
        return dIdCard;
    }

    public void setdIdCard(String dIdCard) {
        this.dIdCard = dIdCard;
    }

    public String getdPhone() {
        return dPhone;
    }

    public void setdPhone(String dPhone) {
        this.dPhone = dPhone;
    }

    public String getdTelephone() {
        return dTelephone;
    }

    public void setdTelephone(String dTelephone) {
        this.dTelephone = dTelephone;
    }

    public Integer getdSex() {
        return dSex;
    }

    public void setdSex(Integer dSex) {
        this.dSex = dSex;
    }

    public Date getdBirthday() {
        return dBirthday;
    }

    public void setdBirthday(Date dBirthday) {
        this.dBirthday = dBirthday;
    }

    public Integer getdAge() {
        return dAge;
    }

    public void setdAge(Integer dAge) {
        this.dAge = dAge;
    }

    public String getdEmail() {
        return dEmail;
    }

    public void setdEmail(String dEmail) {
        this.dEmail = dEmail;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getdEducation() {
        return dEducation;
    }

    public void setdEducation(String dEducation) {
        this.dEducation = dEducation;
    }

    public String getdRemark() {
        return dRemark;
    }

    public void setdRemark(String dRemark) {
        this.dRemark = dRemark;
    }

    public Date getdHiredate() {
        return dHiredate;
    }

    public void setdHiredate(Date dHiredate) {
        this.dHiredate = dHiredate;
    }

    public Integer getdState() {
        return dState;
    }

    public void setdState(Integer dState) {
        this.dState = dState;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    @Override
    public String toString() {
        return "Doctor{" +
                "dId=" + dId +
                ", dName='" + dName + '\'' +
                ", dIdCard='" + dIdCard + '\'' +
                ", dPhone='" + dPhone + '\'' +
                ", dTelephone='" + dTelephone + '\'' +
                ", dSex=" + dSex +
                ", dBirthday=" + dBirthday +
                ", dAge=" + dAge +
                ", dEmail='" + dEmail + '\'' +
                ", deptId=" + deptId +
                ", dEducation='" + dEducation + '\'' +
                ", dRemark='" + dRemark + '\'' +
                ", dHiredate=" + dHiredate +
                ", dState=" + dState +
                ", updateTime=" + updateTime +
                ", department=" + department +
                '}';
    }
}
